package com.jiufengxinxi.ts.device.equipment.test;

import com.jiufengxinxi.ts.common.utils.ByteUtil;
import com.jiufengxinxi.ts.device.callback.IDeviceCallback;
import com.jiufengxinxi.ts.device.equipment.CommDevice;

public class CommonDeviceTest2 {
	
	public static int flag = 0 ;
	
	public static void main(String[] args) {
		String addr = "01";
		
		DviceCallback calback = new DviceCallback();
		
		CommDevice comm = new CommDevice("COM4",calback);
		
		comm.startup();
		
	}
	

}

class DviceCallback implements IDeviceCallback{

	@Override
	public Object callBack(String gateNo, Object... param) {
		System.out.println(gateNo+"~~~~~~~~~~:"+param[0].toString());
		return null;
	}


	
}